package com.coder.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.coder.entity.ConTask;
import com.coder.mapper.ConTaskMapper;
import com.coder.service.ConTaskService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 王令
 */
@Service
public class ConTaskServiceImpl extends ServiceImpl<ConTaskMapper, ConTask> implements ConTaskService {

    @Override
    public List<ConTask> taskList(Long id) {
        return list(new LambdaQueryWrapper<ConTask>().eq(ConTask::getConId, id).orderByDesc(ConTask::getId));
    }
}
